*Figure 5: Distribution of the Scores by Question


use "Data_ImportantProvisions_240423.dta", clear

************************************************************************************************************
************************************PANEL A) Distribution of Mean Values by Question*********************************
************************************************************************************************************

hist mean_general, fraction xtitle("") xlabel(1 "Very Unimportant" 2 "Somewhat Unimportant" 3 "Neutral" 4 "Somewhat Important" 5 "Very Important", angle(45) labsize(small)) title("General") color(white) 
forval i=1/3{
      gr_edit .plotregion1.plot1.EditCustomStyle , j(`i') style(area(shadestyle(color(red%80))))
}
forval i=4/14{
      gr_edit .plotregion1.plot1.EditCustomStyle , j(`i') style(area(shadestyle(color(gray%20))))
}
forval i=15/18{
      gr_edit .plotregion1.plot1.EditCustomStyle , j(`i') style(area(shadestyle(color(blue%40))))
}
graph export "Figure_5_A.pdf", replace



************************************************************************************************************
************************************PANEL B) Distribution of Median Values by Question*******************************
************************************************************************************************************


*xlabel(1 "Very Unimportant" 2 "Somewhat Unimportant" 3 "Neutral" 4 "Somewhat Important" 5 "Very Important", angle(45) labsize(small))
hist median_general, fraction xtitle("")  title("Median General") color(white) xlabel(1 "Very Unimportant" 2 "Somewhat Unimportant" 3 "Neutral" 4 "Somewhat Important" 5 "Very Important", angle(45) labsize(small))
forval i=1/3{
      gr_edit .plotregion1.plot1.EditCustomStyle , j(`i') style(area(shadestyle(color(red%80))))
}
forval i=4/7{
      gr_edit .plotregion1.plot1.EditCustomStyle , j(`i') style(area(shadestyle(color(gray%20))))
}
forval i=7/10{
      gr_edit .plotregion1.plot1.EditCustomStyle , j(`i') style(area(shadestyle(color(blue%40))))
}
graph export "Figure_5_B.pdf", replace


